package com.heima.common.exception.config;

import com.heima.model.common.enums.AppHttpCodeEnum;

/**
 * @Description:
 * @Version: V1.0
 */
public class CustException {


    public static void  cust(String message) {
        throw new CustomException(AppHttpCodeEnum.SERVER_ERROR, message);
    }


    public static void  cust(AppHttpCodeEnum appHttpCodeEnum , String message) {
        throw new CustomException(appHttpCodeEnum, message);
    }

}
